package com.betterwood.dragon.dao;

import java.util.List;

import com.betterwood.dragon.dao.enhances.CustomeResultRepo;
import com.betterwood.dragon.entity.Result;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @author dominic
 * @create 2021-03-17 14:16
 */
@Repository
public interface ResultDao extends PagingAndSortingRepository<Result, String>, CustomeResultRepo {

    List<Result> findAll();

    void deleteBySearchId(String searchId);

    Result getOneById(String id);

    Page<Result> findBySearchId(String searchId, Pageable pageable);

}
